import java.util.Scanner;


public class Work3 {
    public static void main(String[] args) {
        float a,b,c,d;
        System.out.println("    ==== 字符版计算器2 ====");
        Scanner input = new Scanner(System.in);
        System.out.print("请输入第一个操作数：x=");
        float x =input.nextFloat();
        System.out.print("请输入第二个操作数：y=");
        float y =input.nextFloat();
        System.out.println("运算结果如下：");
        a=x+y;
        b=x-y;
        c=x*y;
        d=x/y;
        System.out.printf("%.1f+%.1f=%.1f\n",x,y,a);
        System.out.printf("%.1f-%.1f=%.1f\n",x,y,b);
        System.out.printf("%.1f*%.1f=%.15f\n",x,y,c);
        System.out.printf("%.1f/%.1f=%.14f\n",x,y,d);

    }
}
